﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace IMDBApi.Contracts.Entities.Title.Quotes
{
    [DataContract]
    public class Quotes
    {
        [DataMember(Name = "exp")]
        public int Exp { get; set; }

        [DataMember(Name = "data")]
        public Data Data { get; set; }
    }

    [DataContract]
    public class Data
    {
        [DataMember(Name = "quotes")]
        public List<Quote> Quotes { get; set; }

        [DataMember(Name = "tconst")]
        public string Tconst { get; set; }

        [DataMember(Name = "type")]
        public string Type { get; set; }

        [DataMember(Name = "title")]
        public string Title { get; set; }

        [DataMember(Name = "year")]
        public string Year { get; set; }
    }

    [DataContract]
    public class Quote
    {
        [DataMember(Name = "lines")]
        public List<Line> Lines { get; set; }

        [DataMember(Name = "qconst")]
        public string Qconst { get; set; }
    }

    [DataContract]
    public class Line
    {
        [DataMember(Name = "quote")]
        public string Quote { get; set; }

        [DataMember(Name = "chars")]
        public List<Char> Chars { get; set; }

        [DataMember(Name = "stage")]
        public string Stage { get; set; }
    }

    [DataContract]
    public class Char
    {
        [DataMember(Name = "nconst")]
        public string Nconst { get; set; }

        [DataMember(Name = "char")]
        public string Chars { get; set; }
    }
}
